﻿/**
 * ...
 * @author sminutoli
 */
import com.dmotiko.prune.*
import com.dmotiko.general.*
 
class FashionBar extends SiteBar
{
	
	public static var VIDEO:String = "fashionbar_video";
	public static var FOTOS:String = "fashionbar_fotos";
	
	private function initClip():Void {
		super.initClip();
		sLink = "MainSubBtn";
		setData( [ { label: "VIDEO", value: VIDEO }, { label: "FOTOS", value: FOTOS } ] );
	}
	
	private function section_changed(e):Void {
		if ( e.section == SiteSections.FASHION ) {
			btns[0].onRelease();
			this._x = 63;
			this._y = 325;
			show();
		} else {
			hide();
			
		}
	}
	
	private function btn_changed( e ):Void 
	{
		super.btn_changed(e);		
		if ( e.data.value == VIDEO ) {
			Site.getApp().getClips().getFashion().setData( VIDEO );
		} else {
			Site.getApp().getClips().getFashion().setData( FOTOS );
		}
	}
	
}